{% if currencies|length > 1 %}

<form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-currency">

<li class="nav-item dropdown">
  
  

    <a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
      {% for currency in currencies %}
        {% if currency.symbol_left and currency.code == code %}
          <strong>{{ currency.symbol_left }}</strong>
        {% elseif currency.symbol_right and currency.code == code %}
          <strong>{{ currency.symbol_right }}</strong>
        {% endif %}
      {% endfor %}
    
      <span class="d-none d-md-inline">{{ text_currency }}</span>
    </a>

    <div class="dropdown-menu" aria-labelledby="navbarDropdown">

      {% for currency in currencies %}
        {% if currency.symbol_left %}
          <a href="{{ currency.code }}" class="dropdown-item">{{ currency.symbol_left }} {{ currency.title }}</a>
        {% else %}
          <a href="{{ currency.code }}" class="dropdown-item">{{ currency.symbol_right }} {{ currency.title }}</a>
        {% endif %}
      {% endfor %}

    </div>

  
    <input type="hidden" name="code" value=""/> <input type="hidden" name="redirect" value="{{ redirect }}"/>

                    
</li>
</form>
{% endif %}